home *** CD-ROM | disk | FTP | other *** search
- Echo off
- REM *************************************************************************
- REM Robosystems Batch File Copyright (c) 1989 Robocom Ltd
- REM *************************************************************************
- REM ROBOKILL Environment variable containing the command to remove the
- REM current memory resident graphics driver
- REM ROBOPARAM Environment variable containing the parameter that is to
- REM be passed to the next program from the suite to be run
- REM ROBOINPUT Environment variable containing the command for loading
- REM an input device
- REM Clear all parameter environment variables
- REM COLOURS - the setup program for high res displays is run if present
- REM *************************************************************************
- cls :Clear screen
- set ROBOPARAM=
- set ROBOINPUT=
- set ROBOKILL=
- if not exist rc_con.exe goto end :Test for system menu program
- if exist colours.exe COLOURS
- REM *************************************************************************
- REM INSTALLATION AND SYSTEM MENU PROGRAM
- REM Remove any resident graphics program the command for which is in ROBOKILL
- REM Clear the graphics driver killing environment variable ROBOKILL
- REM set input device including path if networked
- REM Run Installation or System Menu program
- REM RC_CON exit codes allow: Exit to DOS
- REM Load ROBOINPUT input device and run RoboDATA
- REM Load no input device and run RoboDATA
- REM Load ROBOINPUT input device and run RoboBUILD
- REM Load no input device and run RoboBUILD
- REM Load ROBOINPUT input device and run RoboCAD
- REM Load no input device and run RoboCAD
- REM Load ROBOINPUT input device and run RoboSOLID
- REM Load no input device and run RoboSOLID
- REM Restart this batch file after installation
- REM *************************************************************************
- :system_menu
- %ROBOKILL%
- set ROBOKILL=
- set ROBOINPUT=RC_EXEC INP_DEV.BAT
- if exist %RCAD_MACHINE%\INP_DEV.BAT set ROBOINPUT=RC_EXEC %RCAD_MACHINE%\INP_DEV.BAT
- RC_CON
- if errorlevel 255 goto veryend :Exit to DOS
- if errorlevel 49 goto data
- if errorlevel 40 set ROBOINPUT=
- if errorlevel 40 goto data :Run RoboDATA
- if errorlevel 39 goto build_config
- if errorlevel 30 set ROBOINPUT=
- if errorlevel 30 goto build_config :Run RoboBUILD
- if errorlevel 29 goto cad
- if errorlevel 20 set ROBOINPUT=
- if errorlevel 20 goto cad :Run RoboCAD
- if errorlevel 19 goto solid
- if errorlevel 10 set ROBOINPUT=
- if errorlevel 10 goto solid :Run RoboSOLID
- RSYS :Restart if install
- REM *************************************************************************
- REM ROBOCAD
- REM Remove any resident graphics program the command for which is in ROBOKILL
- REM Clear the graphics driver killing environment variable ROBOKILL
- REM Load an input device if one has been stored in ROBOINPUT
- REM Clear the input device environment variable ROBOINPUT
- REM Load the extended character set
- REM Run RoboCAD and pass any parameter stored in ROBOPARAM
- REM Clear the parameter environment variable ROBOPARAM
- REM RoboCAD exit codes allow: Exit to DOS
- REM Run RoboSOLID passing data in ROBOPARAM
- REM Run RoboSOLID without passing data
- REM Run RoboBUILD passing data in ROBOPARAM
- REM Run RoboBUILD without passing data
- REM Return to the system menu
- REM *************************************************************************
- :cad
- %ROBOKILL%
- set ROBOKILL=
- %ROBOINPUT%
- set ROBOINPUT=
- inp_test
- if not errorlevel 1 echo Input device not installed
- if not errorlevel 1 goto system_menu
- graftabl
- echo Loading RoboCAD please wait
- ROBOCAD %ROBOPARAM%
- set ROBOPARAM=
- if errorlevel 255 goto veryend :Exit to DOS
- if errorlevel 41 set ROBOPARAM=cad2dat.rdf
- if errorlevel 40 goto data :Run RoboDATA
- if errorlevel 31 set ROBOPARAM=-cad cad2mod.plo
- if errorlevel 30 goto build :Run RoboBUILD
- if errorlevel 11 set ROBOPARAM=-cad cad2sol.rdf
- if errorlevel 10 goto solid :Run RoboSOLID
- goto system_menu :Return to menu
- REM *************************************************************************
- REM ROBOSOLID
- REM Load an input device if one has been stored in ROBOINPUT
- REM Clear the input device environment variable ROBOINPUT
- REM Clean up the screen
- REM Install the low or high resolution graphics driver
- REM Store the command for removing the graphics driver in ROBOKILL
- REM Run RoboSOLID passing ROBOPARAM
- REM RoboSOLID exit codes allow: Exit to DOS
- REM Run RoboCAD passing data in ROBOPARAM
- REM Run RoboCAD without passing data
- REM Return to the system menu
- REM ROBOKILL must be run before any environment variables are set or cleared
- REM *************************************************************************
- :solid
- %ROBOINPUT%
- set ROBOINPUT=
- inp_test
- if not errorlevel 1 echo Input device not installed
- if not errorlevel 1 goto system_menu
- echo Loading RoboSOLID please wait
- PRTSCRN /i :Clean up the screen
- cls
- if exist metawndo.exe set ROBOKILL=METAWNDO /k
- if exist metarobo.exe set ROBOKILL=METACLR
- if exist metawndo.exe METAWNDO
- if exist metarobo.exe METAROBO
- cls
- ROBSOLID %ROBOPARAM%>NUL:
- if errorlevel 255 goto veryend :Exit to DOS
- if errorlevel 21 goto data_to_cad
- if errorlevel 20 goto to_cad :Run RoboCAD
- %ROBOKILL%
- set ROBOKILL=
- set ROBOPARAM=
- goto system_menu :Return to menu
- :data_to_cad
- %ROBOKILL%
- set ROBOKILL=
- set ROBOPARAM=-sol sol2cad.rdf
- goto cad
- :to_cad
- %ROBOKILL%
- set ROBOKILL=
- set ROBOPARAM=
- goto cad
- REM *************************************************************************
- REM ROBOBUILD
- REM Delete any transfer files from a previous run
- REM Run the graphics driver INT7F
- REM Store the command for removing the graphics driver in ROBOKILL
- REM Run RoboBUILD and pass any parameter stored in ROBOPARAM
- REM RoboBUILD exit codes allow: Return to system menu
- REM Run RoboCAD passing data in ROBOPARAM
- REM Run RoboCAD without passing data
- REM *************************************************************************
- :build_config
- echo Loading RoboBUILD please wait
- MOD /C
- :build
- if exist mod2cad.rdf del mod2cad.rdf
- echo Loading RoboBUILD please wait
- int7f
- set ROBOKILL=CLR7F
- if exist modinput.* MODINPUT
- MOD %ROBOPARAM%
- set ROBOPARAM=
- if errorlevel 255 goto system_menu :Exit to system menu
- if not errorlevel 20 goto system_menu
- if errorlevel 21 RDFLINK mod2cad.bat
- if exist mod2cad.rdf set ROBOPARAM=-mod mod2cad.rdf
- goto cad :Run RoboCAD
- REM *************************************************************************
- REM ROBODATA
- REM Run RoboDATA and pass any parameter stored in ROBOPARAM
- REM Clear the parameter environment variable ROBOPARAM
- REM RoboDATA exit codes allow: Exit to DOS
- REM Return to the system menu
- REM *************************************************************************
- :data
- echo Loading RoboDATA please wait
- ATRB %ROBOPARAM%
- set ROBOPARAM=
- if errorlevel 255 goto veryend :Exit to DOS
- if errorlevel 20 goto cad :Exit to RoboCAD
- goto system_menu :Return to menu
- REM *************************************************************************
- REM Message if installation being tried when current disk is not a:
- REM *************************************************************************
- :end
- echo Please log onto system disk and restart
- REM *************************************************************************
- REM Remove any memory resident graphics driver
- REM Clear all environment variables
- REM Exit to DOS
- REM *************************************************************************
- :veryend
- %ROBOKILL%
- set ROBOKILL=
- set ROBOINPUT=
- set ROBOPARAM=
-